import Cookies from 'js-cookie'

const TokenKey = 'qjfw-access-token'
const RefreshTokenKey = 'saber-refresh-token'

export const getToken = () => Cookies.get(TokenKey)

export const setToken = token => Cookies.set(TokenKey, token)

export const getRefreshToken = () => Cookies.get(RefreshTokenKey)

export const setRefreshToken = token => Cookies.set(RefreshTokenKey, token)

export const removeToken = () => Cookies.remove(TokenKey)

export const removeRefreshToken = () => Cookies.remove(RefreshTokenKey)